package com.ruoyi.manager.service.impl;

import com.ruoyi.manager.mapper.StatisticsMapper;
import com.ruoyi.manager.service.StatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class StatisticsServiceImpl implements StatisticsService {


    @Autowired
    private StatisticsMapper statisticsMapper;

    /**
     * 统计
     * @return
     */
    @Override
    public List<Map<String, Integer>> courtSum() {
        return statisticsMapper.selectCourtSumByType();
    }

    /**
     * 统计
     * @return
     */
    @Override
    public List<Map<String, Integer>> courtMember() {
        return statisticsMapper.selectCourtMember();
    }
}
